//
//  XieYiViewController.m
//  大股票
//
//  Created by apple on 2019/9/5.
//  Copyright © 2019 apple. All rights reserved.
//

#import "XieYiViewController.h"

@interface XieYiViewController ()
@property (weak, nonatomic) IBOutlet UITextView *myTextView;
@property (weak, nonatomic) IBOutlet UILabel *myTitleLabel;

@end

@implementation XieYiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    if (self.xieyi) {
        self.myTextView.text = self.xieyi;
        self.myTitleLabel.text = @"股票配资协议";
    }
}

- (IBAction)backBtnTap:(id)sender {
    
    if (self.xieyi) {
        [self dismissViewControllerAnimated:YES completion:nil];
    }
    
    [self.navigationController popViewControllerAnimated:YES];
}
@end
